package com.planet.facade;

import com.planet.query.AssessmentUserQuery;
import com.planet.vo.AssessmentUserVO;

import java.util.List;

/**
 * Created by jiayazi on 17/11/15.
 */
public interface AssessmentUserBiz {

    /**
     * 插入督办
     * @param assessmentUserQuery
     * @return
     */
    boolean insertSelective(AssessmentUserQuery assessmentUserQuery);

    /**
     * 根据手机号获取督办信息(已经督办的)
     * @param phone
     * @return
     */
    AssessmentUserVO selectByPhoneAndType(String phone);


    /**
     * 根据手机号获取督办信息
     * @param phone
     * @return
     */
    AssessmentUserVO selectByPhone(String phone);


    /**
     * 更新督办状态（已督办  为督办）
     * @param assessmentUserQuery
     * @return
     */
    boolean updateAssessState(AssessmentUserQuery assessmentUserQuery);


    /**
     * 获取已督办的列表
     * @return
     */
    List<AssessmentUserVO> selectHaveAssessList();

    /**
     * 获取未督办的列表
     * @return
     */
    List<AssessmentUserVO> selectNoHaveAssessList();


    //督办
    boolean assess(AssessmentUserQuery assessmentUserQuery);

}
